package com.zhima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhima.entity.OjLabel;
import com.zhima.vo.QuestionLabelVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhima
 * @since 2023-08-25
 */
public interface OjLabelService extends IService<OjLabel> {

    /**
     * 返回全部的标签
     *
     * @return
     */
    List<QuestionLabelVO> queryAllLabels(Long parentId);

    boolean createNewLabel(String labelName, Long parentId);

    boolean deleteLabelById(Long labelId);

    boolean updateLabel(OjLabel ojLabel);
}
